package cn.openea.perpartner.meily.coupon.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author rains
 * @since 2023-06-16 11:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class Coupon {
    @NotBlank
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "用户昵称")
    private String nickName;
    @ApiModelProperty(value = "优惠券id")
    private Long couponId;
    @ApiModelProperty(value = "优惠券名称")
    private String couponName;
    @NotNull
    @ApiModelProperty(value = "优惠券金额")
    private BigDecimal couponAmount;
    @NotBlank
    @ApiModelProperty(value = "优惠券类型。0单品券；1通用券")
    private String couponType;
    @ApiModelProperty(value = "商品编号")
    private String goodsNo;
}
